<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加事件案列</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
    <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('service/event/add')}" method="post" id="unitForm">
          
         	<div class="layui-form-item">
                 <label class="layui-form-label">标题&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                 <div class="layui-input-block">
                     <input class="layui-input demand" name="title" data-set="title" type="text" lay-verify="required" placeholder="请输入标题" />
                 </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">来源&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input demand" name="source" data-set="source" type="text" placeholder="请输入来源" />
                    </div>
                </div>

            	<div class="layui-inline col-3">
                    <label class="layui-form-label">作者&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input demand" name="author" data-set="author" type="text" placeholder="请输入简称" />
                    </div>
                </div>

             	<div class="layui-inline col-3">
                    <label class="layui-form-label">重要性&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <select class="selector" name="levelId" lay-verify="required" >
                            
                            <option value="0">请选择</option>
                               {volist name="type" id="vo" key="k" }
                            <option value="{$k}">{$vo}</option>
                               {/volist}
                        </select>
                    </div>
                </div>
			</div>
            <div class="layui-form-item">
                <label class="layui-form-label">文件&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                	<input class="layui-input upload-file" type="text" name="pathInfo">
                    <a class="layui-btn layui-btn-small btn-green" id="uploadfile" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-upload"></i></a>
                </div>
            </div>

            <!--第4行-->
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">摘要&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="synopsis" data-set="synopsis" placeholder="请输入摘要"></textarea>
                </div>
            </div>



            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">详细内容&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="detail" data-set="detail" placeholder="请输入详细内容" ></textarea>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="remark" data-set="remark" placeholder="请输入备注" ></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                 <label class="layui-form-label">有效性</label>
                 <div class="layui-input-block">
                     <input type="checkbox" checked="" name="isValid" lay-skin="switch"  lay-text="有效|无效">
                 </div>
            </div>
  
           <div class="layui-form-item">
               	 <div class="layui-input-block">
                       <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                       <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                  </div>
	        </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/service/event.js"></script>
       

</body>
</html>     

<script>

</script>      
